package com.muyu.danmo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;


/**
 * 装裱信息对象 danmo_mount_message
 *
 * @author yangle
 * @date 2024-10-14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoMountMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 店铺介绍 */
    @Excel(name = "店铺介绍")
    private String introduction;

    /** 营业时间 */
    @Excel(name = "营业时间")
    private String startTime;

    /** 结束营业时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束营业时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 店铺的联系方式 */
    @Excel(name = "店铺的联系方式")
    private String contactInfo;

    /** 省份 */
    @Excel(name = "省份")
    private String province;

    /** 市 */
    @Excel(name = "市")
    private String citycode;

    /** 县 */
    @Excel(name = "县")
    private String countycode;

    /** 店铺的地址 */
    @Excel(name = "店铺的地址")
    private String address;

    /** 店铺的电子邮箱（用于信息审核通过后接收通知）。 */
    @Excel(name = "店铺的电子邮箱", readConverterExp = "用=于信息审核通过后接收通知")
    private String email;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long views;

    /** 审核状态（例如：0 待审核、1 审核通过、2 审核未通过） */
    @Excel(name = "审核状态", readConverterExp = "例=如：0,待=审核、1,审=核通过、2,审=核未通过")
    private Long status;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;
    /** 图片 */
    @Excel(name = "图片")
    private String picture;

    @Excel(name = "是否点赞")
    private String praise;

    /**
     * 是否收藏
     */
    @Excel(name = "是否收藏")
    private String isCollection;

    /**
     * 营业执照
     */
    private String businessLicense;

    /**
     * 身份证正面
     */
    private String frontOfIdCard;

    /**
     * 身份证反面
     */
    private String reverseSideOfIdCard;


    /** 装裱图片信息 */
    private List<DanmoMountImages> danmoMountImagesList;
    /**
     *  店铺门
     */
    private List<DanmoMountDoor> danmoMountDoors;
    /**
     *  店铺的内部环境
     */
    private List<DanmoMountInterior> danmoMountInteriorList;
    /**
     * 装裱作品
     */
    private List<DanmoMountWorks> danmoMountWorks;
    /**
     * 店铺类型
     */
    private List<DanmoMountType> danmoMountTypes;

    private String  provinceName;
    private String  cityName;
    private String  typeName;
    private String  countyName;
    private Integer pageNum = 1;
    private Integer pageSize = 10;
    /**
     * 点赞量
     */
    @Excel(name = "点赞量")
    private Long amountPraise;

//    private String sortField; // 排序字段，如 "region", "views", "likes"
    private String sortOrder; // 排序方向，如 "asc", "desc"

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("introduction", getIntroduction())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("contactInfo", getContactInfo())
            .append("province", getProvince())
            .append("citycode", getCitycode())
            .append("countycode", getCountycode())
            .append("address", getAddress())
            .append("email", getEmail())
            .append("views", getViews())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("userId", getUserId())
            .append("picture", getPicture())
            .toString();
    }
}
